package ktv;

import java.util.List;

public class KtvSystem {
	
	public void show(List<Music> allList){
		System.out.println(allList);
	}
	public void add(List<Music> allList,String mName,String pName){
		allList.add(new Music(mName,pName));
	}
	public void Aremove(List<Music> allList,int x){
		allList.remove(x);
	}
	public void beFirst(List<Music> allList,String name,String pname){
		allList.remove(new Music(name, pname));
		allList.add(0, new Music(name, pname));
	}
	public void beUp(List<Music> allList,String name,String pname){
		int x = allList.indexOf(new Music(name, pname));
		allList.remove(x);
		allList.add(x-1, new Music(name, pname));
	}
}
